package com.yang.service.impl;

import java.sql.SQLException;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.yang.dao.VersionDAO;
import com.yang.service.VersionService;

@Repository("VersionServiceImpl")
public class VersionServiceImpl implements VersionService{

	@Resource(name="VersionDAOImpl")
	private VersionDAO dao;
	
	public void updateVersion(String companyId) throws SQLException {
		
		dao.updateVersion(companyId);
	}

	public String selectLatestVersion(String companyId) throws SQLException {
		
		return dao.selectLatestVersion(companyId);
	}

}
